package com.wcy.controller;


import com.wcy.bean.City;
import com.wcy.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wcy
 * @since 2021-04-29
 */
@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
    private ICityService service;

    @RequestMapping("list")
    public List<City> selectCityList(Integer pid){
        return service.getCityList(1);
    }

}

